<template>
  <div style="background:red;">
    <!-- 个人中心的子组件 {{myname}} -->
  </div>
</template>
<script>
export default {

  name: "mycom",
  data () {
    return {
      mdata: "子组件的数据"
    }
  },
  // inject: ["myname"],
  created () {
    console.log(this.myname)
  },
  methods: {
    say () {
      alert("子组件的方法")
    }
  },
}
</script>
<style lang="less">
</style>